package com.ssh.service.impl;

import com.ssh.bean.User;
import com.ssh.dao.UserDao;
import com.ssh.service.UserService;

public class UserServiceImpl implements UserService{

	private UserDao userDao;
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public User getUserById(int userId) {
		return userDao.getUserById(userId);
	}

	public void saveUser(User user) {
		userDao.saveUser(user);
	}
	
}
